package com.hopu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/")
public class TestController {

    @RequestMapping("/test")

    public String test(){
        System.out.println(11);
        return "main/main";
    }

    @GetMapping("redirect")
    public String Page(@RequestParam String page){
      return page;
    }
}
